package org.gdtc.storefront.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.gdtc.storefront.entity.Saleafter;

public interface SaleafterMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Saleafter record);

    Saleafter selectByPrimaryKey(Integer id);

    List<Saleafter> selectAll();

    int updateByPrimaryKey(Saleafter record);

    List<Saleafter> QueryAllSalea(@Param("storeid") Integer storeid);

    int UpdSaleaState(@Param("id") Integer id,
                      @Param("storeid") Integer storeid,
                      @Param("state") Integer state);

    List<Saleafter> SelectUpdSalea(@Param("storeid") Integer storeid,
                                   @Param("id") Integer id);

    int QuerycommodityId(@Param("id") Integer id);

    List<Saleafter>QuerySaleaWhere(@Param("storeid") Integer storeid,
                                   @Param("state") Integer state);
}